import { createApp } from 'vue'
import App from './App.vue'

let app = createApp(App); //获取根实例

//1.创建全局组件
import common from "./common";
for(let attr in common){
    app.component(attr,common[attr])
}
// app.component("组件名","组件模板")


//2.添加全局的变量--原型
app.config.globalProperties.$baseUrl = "http://localhost:3000"


app.mount('#app')


